<?php
		
include("../lib/db.lib");
include("../lib/std.lib");
include("user_check.php");

$cat_id=param('cat_id');
$parent_id=cat_get_parent($shop_id,$cat_id);
$title=cat_get_title($shop_id,$cat_id);

cat_del($shop_id,$cat_id);

cat_set_product_num_local($shop_id,$parent_id);

redirect("Catalog $cat_id: <i>$title</i>  deleted.","./p_cat_show.php");

?>
